<extend name="Public/base" />

<block name="body"> <script type="text/javascript"
	src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>

<div class="main-title">
	<h2>{:isset($info['id'])?'编辑':'新增'}广告位置</h2>
</div>
<div class="tab-wrap">
	<form action="{:U()}" method="post" class="form-horizontal">
	
		<div class="form-item">
			<input type="hidden" value="{$info.id}" name="id" /> <label
				class="item-label">唯一标识<span class="check-tips">（不要修改）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="identifier">
			</div>
		</div>
		<div class="form-item">
			<input type="hidden" value="{$info.id}" name="id" /> <label
				class="item-label">标题<span class="check-tips">（不能为空）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="title">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">排序<span class="check-tips">数字越大
					越靠前</span></label>
			<div class="controls">
				<input name="sort" value="{$info.sort}" class=" text input-small" />
			</div>
		</div>
		<div class="form-item">
			<button class="btn submit-btn ajax-post" id="submit" type="submit"
				target-form="form-horizontal">保存</button>
			<button class="btn btn-return"
				onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</div>
</block>
<block name="script"> <script type="text/javascript"
	charset="utf-8">
	showTab();		
	//导航高亮
	highlight_subnav('{:U('Ad/position')}');	
	Think.setValue('title', "{$info.title}");
	Think.setValue('identifier', "{$info.identifier}");
    Think.setValue('sort', {$info.sort|default=0});
</script> </block>
